﻿using DDD.Core;
using DDD.Domain;
using MediatR;

namespace DDD.Application
{
    public interface IDomainEventHandler<in TDomainEvent> : INotificationHandler<TDomainEvent>
       where TDomainEvent : IDomainEvent
    {
        new Task Handle(TDomainEvent @event, CancellationToken cancellationToken);
    }
}
